@model RBDD.Embol.AccesoDatos.Entidades.Persona
@{
   ViewBag.Title = "Creacion Persona::.";
 }
<h2>Nuevo(a) Persona</h2>
@using (Html.BeginForm()) {
@Html.ValidationSummary(true)
<fieldset>
<legend>Persona</legend>
<div class="editor-label">
@Html.LabelFor(model => model.Nombre)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Nombre)
@Html.ValidationMessageFor(model => model.Nombre)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.ApellidoPaterno)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.ApellidoPaterno)
@Html.ValidationMessageFor(model => model.ApellidoPaterno)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.ApellidoMaterno)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.ApellidoMaterno)
@Html.ValidationMessageFor(model => model.ApellidoMaterno)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.FechaNacimiento)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.FechaNacimiento)
@Html.ValidationMessageFor(model => model.FechaNacimiento)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.CedulaIdentidad)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.CedulaIdentidad)
@Html.ValidationMessageFor(model => model.CedulaIdentidad)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Telefono)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Telefono)
@Html.ValidationMessageFor(model => model.Telefono)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Celular)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Celular)
@Html.ValidationMessageFor(model => model.Celular)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Email)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Email)
@Html.ValidationMessageFor(model => model.Email)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Direccion)
</div>
<div class="editor-field">
@{
List<RBDD.Embol.AccesoDatos.Entidades.Direccion> listDireccion = ViewBag.Direccions;
var itemsDireccion = new SelectList(listDireccion, "Id", "Nombre");
}
@Html.DropDownListFor(x => x.Direccion.Id, @itemsDireccion)
</div>
<p>
<input type="submit" value="Crear" />
</p>
</fieldset>
}
<div>
@*@Html.ActionLink("Back to List", "Index")*@
</div>

